package controller;

import javax.swing.JFrame;
import javax.swing.JPanel;

import boundary.CheckoutGui;
import boundary.DisableSaveActivatePlSpotGui;
import boundary.ISMainGui;
import boundary.InformationStationSubscriptionGui;
import boundary.InitParkingLotGui;

public class ParkingLotWorkerController {

	public void disableSaveActivatePspot() {
		JFrame frame=ISMainGui.getFrame();
		DisableSaveActivatePlSpotGui plwGui=new DisableSaveActivatePlSpotGui();
		plwGui.setLastPanel((JPanel)frame.getContentPane());
		plwGui.setFrame(frame);
		frame.setContentPane(plwGui);
		frame.setVisible(true);
	}

	public void initParkingLot() {
		JFrame frame=ISMainGui.getFrame();
		InitParkingLotGui plwGui=new InitParkingLotGui();
		plwGui.setLastPanel((JPanel)frame.getContentPane());
		plwGui.setFrame(frame);
		frame.setContentPane(plwGui);
		frame.setVisible(true);
		
		
	}

	public void carCheckout() {
		JFrame frame=ISMainGui.getFrame();
		CheckoutGui plwGui=new CheckoutGui();
		plwGui.setLastPanel((JPanel)frame.getContentPane());
		plwGui.setFrame(frame);
		frame.setContentPane(plwGui);
		frame.setVisible(true);
	}
	

}
